﻿namespace WeWork.Model
{
    /// <summary>
    /// 不同意会话聊天内容
    /// </summary>
    public class ChatDisAgree : MsgChatRoomBase
    {
        /*
        {
            "msgid":"8891446340739254950_1603875826",
            "action":"send",
            "from":"wmGAgeDQAAvQeaTqWwkMTxGMkvI7OOuQ",
            "tolist":["kenshin"],
            "roomid":"",
            "msgtime":1603875826656,
            "msgtype":"agree",
            "agree":{
                "userid":"wmGAgeDQAAvQeaTqWwkMTxGMkvI7OOuQ",
                "agree_time":1603875826656
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public DisAgreeInfo disagree { set; get; }
    }

    public class DisAgreeInfo
    {
        /// <summary>
        /// 不同意协议者的userid，外部企业默认为external_userid。String类型
        /// </summary>
        public string userid { set; get; }
        /// <summary>
        /// 不同意协议的时间，utc时间，ms单位。
        /// </summary>
        public long disagree_time { set; get; }
    }
}
